<template>
    <el-menu theme="dark" default-active="1" class="el-menu-demo" mode="horizontal" @select="handleselect">
        <el-menu-item index="good">精华</el-menu-item>
        <el-menu-item index="share">分享</el-menu-item>
    </el-menu>
</template>

<script>
export default {


  /**事件列表 */
  methods: {
      handleselect(value){
          //点击路由 改变地址  调用数据初始函数
          this.$router.push({ path: '/'+value, query: { tab: value}})
          this.$store.dispatch('getNodeList', {tab:this.$route.query.tab , page:1})
      }
  }
}
  

</script>

<style>




</style>